<template>
  <div class="app-container">
    <div v-show="!detailInfo.visible && !modifyInfo.visible">
      <!-- 条件栏 -->
      <div class="filter-wrapper">
        <NewPageFilter
          v-model:query="filterInfo.query.queryMap"
          :query-more-json="true"
          :filter-list="filterInfo.searchList"
          :filter-btn="filterInfo.searchBtn"
          :clear-type="clearType"
          :slip-select-request="slipSelectRequest"
        >
          <template v-slot:filter-useDeptName>
            <slip-select
              v-model="filterInfo.query.queryParams.useDeptIdMult"
              value-key="value"
              placeholder="选择使用部门"
              :api="inOrOutDepotInfo.api"
              key-field="name"
              value-field="id"
              v-model:query="inOrOutDepotInfo.query"
              :clearable="true"
              :filterable="true"
              :multiple="true"
              @change="search"
            />
          </template>
        </NewPageFilter>
      </div>
      <div class="filter-wrapper">
        <NewPageFilter :filter-btn="filterInfo.btnList">
          <template v-slot:filter-add>
            <el-button @click="add()">新增</el-button>
          </template>
          <template v-slot:filter-submit>
            <el-button :disabled="!canSubmit" @click="submit()">提交</el-button>
          </template>
          <template v-slot:filter-approve>
            <el-button :disabled="!canFlowBtn" @click="btnFlow('', 'approve')"
              >批准
            </el-button>
          </template>
          <template v-slot:filter-reject>
            <el-button :disabled="!canFlowBtn" @click="btnFlow('', 'reject')"
              >驳回
            </el-button>
          </template>
          <template v-slot:filter-refuse>
            <el-button :disabled="!canFlowBtn" @click="btnFlow('', 'refuse')"
              >拒绝
            </el-button>
          </template>
          <template v-slot:filter-del>
            <el-button :disabled="!canDel" @click="remove()">删除</el-button>
          </template>
          <template v-slot:filter-print>
            <PopoverPrint
              ref="popoverShow"
              v-model:popoverVisible="popoverVisible"
              :templateArr="templateArr"
              title="打印"
              :canPrint="$permission('outsourcingApplication:print')"
              @tempClick="tempClick"
              @print="handelPrint"
            ></PopoverPrint>
          </template>
          <template v-slot:filter-download>
            <el-button @click="exportExcel()">导出excel</el-button>
          </template>
        </NewPageFilter>
      </div>
      <!-- 表格 -->
      <table-container
        :refresh="tableInfo.refresh"
        :init-curpage="tableInfo.initCurpage"
        v-model:data="tableInfo.data"
        :api="tableInfo.api"
        :check-box="true"
        :tab-index="true"
        :query="filterInfo.query"
        :field-list="tableInfo.fieldList"
        :handle="tableInfo.handle"
        :row-class-name="tableRowClassName"
        @sortChange="sortChange"
        @handleEvent="handleEvent"
        @pageInfo="pageInfo"
      >
        <template v-slot:col-orderNo="scope">
          <span
            v-if="$permission('outsourcingApplication:detail')"
            class="slip-edit"
            @click="showDetail(scope.row)"
            >{{ scope.row.orderNo }}</span
          >
          <span v-else>{{ scope.row.orderNo || '-' }}</span>
        </template>
      </table-container>
    </div>

    <order-detail
      v-if="detailInfo.visible"
      v-model:visible="detailInfo.visible"
      :id="detailInfo.id"
      title="委外申请详情"
      @returnBack="getList"
    />
    <order-modify
      v-if="modifyInfo.visible"
      v-model:visible="modifyInfo.visible"
      :id="modifyInfo.id"
      :title="modifyInfo.title"
      @returnBack="getList"
    />
    <PageDialog
      v-show="dialogInfo.visible"
      :title="dialogInfo.title"
      v-model:visible="dialogInfo.visible"
      :width="dialogInfo.width"
      :bt-loading="dialogInfo.btLoading"
      :bt-list="dialogInfo.btList"
    >
      <div class="asset-msg">
        <div class="asset-msg-label">
          <i class="el-icon-warning"></i>{{ dialogInfo.msg }}：
        </div>
        <el-radio-group v-model="dialogInfo.flag">
          <el-radio label="page">当前页数据</el-radio>
          <el-radio label="all">全部页数据</el-radio>
        </el-radio-group>
      </div>
    </PageDialog>
    <!-- 维修完成 -->
    <PageDialog
      v-show="outsourcingApplicationInfo.visible"
      :title="outsourcingApplicationInfo.title"
      v-model:visible="outsourcingApplicationInfo.visible"
      :width="outsourcingApplicationInfo.width"
      :bt-loading="outsourcingApplicationInfo.btLoading"
      :bt-list="outsourcingApplicationInfo.btList"
    >
      <PageForm
        class="paddingBox order-model-formBox flex_wrap_start_start"
        v-model:ref-obj="outsourcingApplicationInfo.formInfo.ref"
        :data="outsourcingApplicationInfo.formInfo.data"
        :field-list="outsourcingApplicationInfo.formInfo.fieldList"
        :rules="outsourcingApplicationInfo.formInfo.rules"
        :label-width="outsourcingApplicationInfo.formInfo.labelWidth"
      >
        <template v-slot:form-completeTime="scope">
          <el-date-picker
            v-model="outsourcingApplicationInfo.formInfo.data.completeTime"
            type="datetime"
            value-format="YYYY-MM-DD HH:mm:ss"
            placeholder="请选择日期"
          />
        </template>
      </PageForm>
    </PageDialog>
    <excelOrPrint :excelPrint="excelPrint"></excelOrPrint>
  </div>
</template>

<script setup name="outsourcingApplication">
import OrderDetail from './details'
import OrderModify from './modify'
import { getCustomizeSetting } from '@/api/customize'
import { getDeptAll } from '@/api/core.js'
import moment from 'moment'
import {
  getOutsourcingApplicationPage,
  revokeOutsourcingApplication,
  approvedOutsourcingApplications,
  rejectOutsourcingApplications,
  refuseOutsourcingApplications,
  excelOutsourcingApplicationExport,
  delOutsourcingApplication,
  submitOutsourcingApplication,
  salesOutsourcingApplication,
  completeOutsourcingApplication,
  cancelOutsourcingApplication,
} from '@/api/repair.js'
import { selectByCodeAndDept } from '@/api/report.js'
import { doPrint } from '@/utils/exportUtil.js'
import { getBusinessKeyById } from '@/api/flowable'
import { ElMessage, ElLoading } from 'element-plus'

const { proxy } = getCurrentInstance()
const emit = defineEmits()

const storeState = proxy.$store.state
const clearType = ref(true)
const slipSelectRequest = ref(true)
const detailInfo = reactive({
  visible: false,
  id: '',
})
const inOrOutDepotInfo = reactive({
  api: getDeptAll,
  query: {
    deptAuth: 'id',
    status: 1,
  },
})
// 过滤相关配置
const filterInfo = reactive({
  sortArr: [],
  copyQueryMap: {},
  query: {
    sortString: '',
    customizeUserVO: {},
    queryMap: {},
    queryParams: {},
  },
  searchList: [],
  searchBtn: [
    { type: 'button', label: '搜索', event: search },
    { type: 'button', label: '重置', event: clearSearch },
  ],
  btnList: [
    {
      type: 'slot',
      value: 'add',
      show: proxy.$permission('outsourcingApplication:add'),
    },
    {
      type: 'slot',
      value: 'submit',
      show: proxy.$permission('outsourcingApplication:del'),
    },
    {
      type: 'slot',
      label: '批准',
      value: 'approve',
      show:
        proxy.$permission('outsourcingApplication:approve') &&
        proxy.$store.state.permission.systemConfig
          .allow_entrust_maintenance_apply_approval == 1,
    },
    {
      type: 'slot',
      label: '驳回',
      value: 'reject',
      show:
        proxy.$permission('outsourcingApplication:reject') &&
        proxy.$store.state.permission.systemConfig
          .allow_entrust_maintenance_apply_approval == 1,
    },
    {
      type: 'slot',
      label: '拒绝',
      value: 'refuse',
      show:
        proxy.$permission('outsourcingApplication:refuse') &&
        proxy.$store.state.permission.systemConfig
          .allow_entrust_maintenance_apply_approval == 1,
    },
    {
      type: 'slot',
      value: 'del',
      show: proxy.$permission('outsourcingApplication:del'),
    },
    {
      type: 'slot',
      value: 'download',
      show: proxy.$permission('patrolTask:excelOrderList'),
    },
    {
      type: 'slot',
      value: 'print',
      show: proxy.$permission('outsourcingApplication:print'),
    },
  ],
})
// 表格相关
const tableInfo = reactive({
  refresh: 1,
  initCurpage: 1,
  data: [],
  api: undefined,
  selections: [],
  fieldList: [],
  handle: {
    fixed: 'right',
    label: '操作',
    width: '120',
    btList: [
      {
        label: '维修完成',
        event: generateInvoice,
        show: proxy.$permission('outsourcingApplication:complete'),
        ifRender: function (row) {
          return row.status === 7
        },
      },
      {
        label: '取消维修',
        popconfirmText: '取消后将改变数据,是否继续？',
        event: cancelOutsourcing,
        show: proxy.$permission('outsourcingApplication:cancel'),
        ifRender: function (row) {
          return row.status === 7
        },
      },
      {
        label: '修改',
        event: showModify,
        show: proxy.$permission('outsourcingApplication:modify'),
        ifRender: function (row) {
          return row.status === 1 || row.status === 4
        },
      },
      {
        label: '撤回',
        event: recall,
        show: proxy.$permission('outsourcingApplication:recall'),
        ifRender: checkIfRenderRecall,
      },
      {
        label: '批准',
        event: (row) => btnFlow(row, 'approve'),
        show: proxy.$permission('outsourcingApplication:approve'),
        ifRender: checkIfRenderBtnFlow,
      },
      {
        label: '驳回',
        event: (row) => btnFlow(row, 'reject'),
        show: proxy.$permission('outsourcingApplication:reject'),
        ifRender: checkIfRenderBtnFlow,
      },
      {
        label: '拒绝',
        event: (row) => btnFlow(row, 'refuse'),
        show: proxy.$permission('outsourcingApplication:refuse'),
        ifRender: checkIfRenderBtnFlow,
      },
      {
        label: '销审',
        event: salesReview,
        show: proxy.$permission('outsourcingApplication:salesReview'),
        ifRender: checkIfRenderSalesReview,
      },
      {
        label: '删除',
        popconfirmText: '删除后将改变数据,是否继续？',
        event: remove,
        show: proxy.$permission('outsourcingApplication:del'),
        ifRender: function (row) {
          return row.status === 1 || row.status === 4
        },
      },
      {
        label: '提交',
        event: submit,
        show: proxy.$permission('outsourcingApplication:submit'),
        ifRender: function (row) {
          return row.status === 1 || row.status === 4
        },
      },
    ],
  },
})
const dialogInfo = ref({
  visible: false,
  title: '提示',
  btLoading: false,
  type: '',
  msg: '',
  width: '400px',
  flag: 'page',
  btList: [
    { label: '关闭', event: handleClose, show: true },
    {
      label: '打印',
      type: 'primary',
      event: checkConfirm,
      show: true,
    },
  ],
})
const outsourcingApplicationInfo = reactive({
  visible: false,
  title: '委外维修完成登记',
  btLoading: false,
  type: '',
  row: {},
  msg: '',
  width: '400px',
  flag: true,
  btList: [
    { label: '关闭', event: handleCloseBtnGenerate, show: true },
    {
      label: '保存',
      type: 'primary',
      event: saveBtnGenerate,
      show: true,
    },
  ],
  formInfo: {
    ref: null,
    data: {
      completeTime: moment(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss'),
    },
    fieldList: [
      { label: '维修完成时间', value: 'completeTime', type: 'slot' },
      {
        label: '维修实际费用',
        value: 'actualCost',
        type: 'number',
        precision:
          proxy.$store.state.permission.systemConfig.assets_price_precision,
      },
    ],
    rules: {
      completeTime: [
        { required: true, message: '请选择维修完成时间', trigger: 'change' },
      ],
    },
    labelWidth: '120px',
  },
})
const modifyInfo = reactive({
  visible: false,
  title: '',
  id: '',
})
let page = reactive({
  curPage: 1, // 当前页
  pageSize: 20, // 每页条数
})

const toPage = computed(() => {
  return proxy.$store.state.settings.toPage
})
const canFlowBtn = computed(() => {
  return (
    tableInfo.selections.length &&
    tableInfo.selections.filter((row) => row.status !== 2).length === 0
  )
})
const canSubmit = computed(() => {
  return (
    tableInfo.selections.filter((item) => {
      return item.status !== 1 && item.status !== 4
    }).length === 0 && tableInfo.selections.length !== 0
  )
})
const canDel = computed(() => {
  return (
    tableInfo.selections.filter((item) => {
      return item.status !== 1 && item.status !== 4
    }).length === 0 && tableInfo.selections.length !== 0
  )
})
watch(
  () => proxy.$router.currentRoute.value.name,
  (to, from) => {
    if (!from) return
    if (
      from.includes('myPendingDetail') ||
      from.includes('myFinishedDetail') ||
      from.includes('myApplyDetail')
    ) {
      getList()
    }
  },
  {
    deep: true,
  }
)
let obj = {
  statusValue: {
    label: '状态',
    value: 'statusValue',
    asValue: 'status',
    componentType: 'select-model',
    code: 'entrust_maintenance_status',
    show: false,
    hidden: true,
  },
  assetName: {
    label: '资产字典名称',
    value: 'assetName',
    componentType: 'input',
    show: false,
    hidden: true,
  },
  repairOrderNo: {
    label: '报修单据号',
    value: 'repairOrderNo',
    componentType: 'input',
    show: false,
    hidden: true,
  },
}
tableInfo.fieldList = Object.values({
  ...proxy.$fn.deepClone(proxy.$fieldfList.FieldList),
  ...proxy.$fn.deepClone(obj),
})
filterInfo.searchList = Object.values({
  ...proxy.$fn.deepClone(proxy.$fieldfList.FieldList),
  ...proxy.$fn.deepClone(obj),
})
getCustomize()
function pageInfo(obj) {
  page = obj
}
function generateInvoice(row) {
  outsourcingApplicationInfo.visible = true
  outsourcingApplicationInfo.row = row
}
function handleCloseBtnGenerate() {
  outsourcingApplicationInfo.visible = false
  outsourcingApplicationInfo.formInfo.data = {
    completeTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  }
  proxy.$nextTick(() => {
    outsourcingApplicationInfo.formInfo.ref.clearValidate()
  })
}
function saveBtnGenerate() {
  outsourcingApplicationInfo.formInfo.ref.validate((valid) => {
    if (valid) {
      completeOutsourcingApplication({
        ...outsourcingApplicationInfo.row,
        ...outsourcingApplicationInfo.formInfo.data,
      }).then((resp) => {
        if (resp && resp.success) {
          search()
        }
        handleCloseBtnGenerate()
      })
    }
  })
}
function cancelOutsourcing(row) {
  cancelOutsourcingApplication([row.id]).then((resp) => {
    if (resp && resp.success) {
      search()
    }
    handleCloseBtnGenerate()
  })
}
//展示明细
function showDetail(row) {
  getBusinessKeyById({
    businessKey: row.orderNo,
    businessType: 'outsourcingApplication',
  }).then((res) => {
    if (res.success) {
      sessionStorage.setItem('storeRowId', row.id)
      if (res.data?.processInstanceId) {
        proxy.$fn.setFlowData(res.data, '', proxy.$route)
      } else {
        sessionStorage.setItem('storeRowId', row.id)
        detailInfo.id = row.id
        detailInfo.visible = true
      }
    }
  })
}
const templateArr = ref([])
const popoverVisible = ref(false)
function handleClose() {
  dialogInfo.value.visible = false
}
function checkConfirm() {
  print()
  dialogInfo.value.visible = false
  dialogInfo.value.msg = ''
}
function handelPrint() {
  dialogInfo.value.visible = true
  dialogInfo.value.type = 'print'
  dialogInfo.value.msg = '请选择数据打印范围'
  dialogInfo.value.btList[1].label = '打印'
  dialogInfo.value.flag = 'page'
}
//打印
function print() {
  selectByCodeAndDept({
    tempCode: 'entrustMaintenanceListPrint',
  }).then((res) => {
    if (res && res.success) {
      templateArr.value = res.data
      popoverVisible.value = true
      // 一条数据则直接打印
      if (templateArr.value.length === 1) {
        proxy.$refs.popoverShow.hidePopover()
        doPrint({
          name: templateArr.value[0].ureportName,
          params: {},
          callback: printCallback,
          printCount: true,
          data: {
            customParam: JSON.stringify({
              ...filterInfo.query,
              ...page,
              page: dialogInfo.value.flag === 'page' ? true : false,
            }),
          },
        })
      }
    }
  })
}
function tempClick(item) {
  doPrint({
    name: item.ureportName,
    params: {},
    callback: printCallback,
    printCount: true,
    data: {
      customParam: JSON.stringify({
        ...filterInfo.query,
        ...page,
        page: dialogInfo.value.flag === 'page' ? true : false,
      }),
    },
  })
  popoverVisible.value = false
}
function printCallback() {
  /* try {
    // 打印成功增加打印次数
    updatePrintCount({
      orderNo: infoList.value.data.orderNo,
      orderId: infoList.value.data.id,
      orderType: 77,
    })
  } catch (error) {} */
}
const excelPrint = ref({
  type: 'print', // 类型print/excel
  excel: {
    api: excelOutsourcingApplicationExport, // 导出数据接口
    params: {}, // 导出参数
  },
  refresh: null,
})
//导出
function exportExcel() {
  excelPrint.value.type = 'excel'
  excelPrint.value.excel.params = proxy.$fn.deepClone({
    ...proxy.$fn.delEmptyAttribute(filterInfo.query),
    ...page,
  })
  excelPrint.value.refresh = Math.random()
}
// 批准/驳回/拒绝
function checkIfRenderBtnFlow(row) {
  return (
    proxy.$store.state.permission.systemConfig
      .allow_entrust_maintenance_apply_approval == 1 && row.status === 2
  )
}
// 销审
function checkIfRenderSalesReview(row) {
  return (
    row.status === 7 &&
    proxy.$store.state.permission.systemConfig
      .allow_entrust_maintenance_apply_approval != 0
  )
}
// 撤回
function checkIfRenderRecall(row) {
  return (
    row.status === 2 ||
    (row.status === 7 &&
      proxy.$store.state.permission.systemConfig
        .allow_entrust_maintenance_apply_approval == 0)
  )
}
// 审批/拒绝/驳回按钮审批原因弹窗
function btnFlow(row, code) {
  const ids = _getIds(row)
  const currentBtnFlow = {
    title: '',
    api: null,
  }
  if (code === 'approve') {
    currentBtnFlow.api = approvedOutsourcingApplications
    const data = {
      orderIds: ids,
    }
    currentBtnFlow.api(data).then((resp) => {
      if (resp && resp.success) {
        getList()
      }
    })
    return
  } else if (code === 'reject') {
    currentBtnFlow.title = '驳回'
    currentBtnFlow.api = rejectOutsourcingApplications
  } else if (code === 'refuse') {
    currentBtnFlow.title = '拒绝'
    currentBtnFlow.api = refuseOutsourcingApplications
  }
  proxy
    .$prompt('请输入' + currentBtnFlow.title + '理由', '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      inputValidator: proxy.$fn.maxString200,
      inputErrorMessage: currentBtnFlow.title + '理由不能超过200字符',
    })
    .then(({ value }) => {
      const data = {
        orderIds: ids,
        checkOpt: value,
      }
      currentBtnFlow.api(data).then((resp) => {
        if (resp && resp.success) {
          getList()
        }
      })
    })
}
// 撤回
function recall(row) {
  let ids = []
  if (row) {
    ids.push(row.id)
  } else {
    ids = tableInfo.selections.map((item) => item.id)
  }
  revokeOutsourcingApplication(ids).then((res) => {
    if (res && res.success) {
      getList()
      ElMessage.success({
        message: '操作成功',
        duration: 3000,
        showClose: true,
      })
    } else {
      ElMessage.error({
        message: res.msg,
        duration: 3000,
        showClose: true,
      })
    }
  })
}
// 销审
function salesReview(row) {
  const ids = _getIds(row)
  salesOutsourcingApplication(ids).then((res) => {
    if (res && res.success) {
      getList()
      ElMessage.success({
        message: '操作成功',
        duration: 3000,
        showClose: true,
      })
    } else {
      ElMessage.error({
        message: res.msg,
        duration: 3000,
        showClose: true,
      })
    }
  })
}
function _getIds(row) {
  let ids = []
  if (row && row.id) {
    ids = [row.id]
  } else {
    if (tableInfo.selections.length > 0) {
      ids = tableInfo.selections.map((row) => row.id)
    }
  }
  return ids
}
// 获取列表
async function getList() {
  tableInfo.refresh = Math.random()
}
// 搜索
function search() {
  // 重置分页
  filterInfo.query.queryDtoList = []
  tableInfo.initCurpage = Math.random()
  tableInfo.refresh = Math.random()
}
function tableRowClassName({ row }) {
  let rowId = sessionStorage.getItem('storeRowId')
  if (rowId && row.id === Number(rowId)) {
    return 'check-row'
  }
  return ''
}
function add() {
  modifyInfo.title = '新增维修委外申请'
  modifyInfo.id = ''
  modifyInfo.visible = true
}
//展示新增页
function showModify(row) {
  getBusinessKeyById({
    businessKey: row.orderNo,
    businessType: 'outsourcingApplication',
  }).then((res) => {
    if (res.success) {
      sessionStorage.setItem('storeRowId', row.id)
      if (res.data?.processInstanceId) {
        proxy.$fn.setFlowData(res.data, '', proxy.$route)
      } else {
        //修改
        modifyInfo.id = row.id
        modifyInfo.title = '维修委外申请修改'
        modifyInfo.visible = true
      }
    }
  })
}
// 提交
function submit(row = undefined) {
  let ids = []
  if (row) {
    ids = [row.id]
  } else {
    ids = tableInfo.selections.map((item) => item.id)
  }
  let data = {
    flowTaskCommentDto: { approvalType: 'submit' },
    processDefinitionKey: 'outsourcingApplication',
    orderIds: ids,
  }
  submitOutsourcingApplication(data).then((resp) => {
    if (resp && resp.success) {
      getList()
    }
  })
}
//删除
function remove(row = undefined) {
  const ids = getIds(row)
  delOutsourcingApplication(ids).then((res) => {
    if (res && res.success) {
      search()
    }
  })
}
function getIds(row = undefined) {
  let ids = []
  if (row && row.id) {
    ids.push(row.id)
  } else {
    ids = tableInfo.selections.map((row) => row.id)
  }
  return ids
}
// 触发事件
function handleEvent(event, data) {
  switch (event) {
    case 'tableCheck':
      tableInfo.selections = [...data]
      break
  }
}
function clearSearch() {
  clearType.value = !clearType.value
  filterInfo.query.queryMap = proxy.$fn.deepClone(filterInfo.copyQueryMap)
  search()
}
function getCustomize(_slipSelectRequest = true) {
  let param = {
    tableKey:
      'assetEntrustMaintenanceApplyList-com.slip.spd.entity.vo.repair.AssetEntrustMaintenanceApplyVO',
  }
  getCustomizeSetting(param).then((res) => {
    if (res && res.success) {
      let data = res.data
      filterInfo.query.customizeUserVO = data
      tableInfo.fieldList = proxy.$fn.setFieldList(
        tableInfo.fieldList,
        data.detail
      )
      let searchInfo = proxy.$fn.setSearchList(
        filterInfo.searchList,
        data.detail
      )
      filterInfo.query.queryMap = {
        ...searchInfo.queryMap,
        ...filterInfo.query.queryMap,
      }
      filterInfo.searchList = searchInfo.searchList
      filterInfo.searchList = [
        ...searchInfo.searchList,
        {
          slot: true,
          value: 'useDeptName',
        },
      ]
      filterInfo.searchList.forEach((item) => {
        item.event = search
      })
      filterInfo.copyQueryMap = proxy.$fn.deepClone(filterInfo.query.queryMap)
      slipSelectRequest.value = _slipSelectRequest
      tableInfo.api = getOutsourcingApplicationPage
      getList()
    }
  })
}
function sortChange(column) {
  if (filterInfo.query.customizeUserVO.head.sortType === 0) {
    let arr = proxy.$fn.sortChange(column, filterInfo.sortArr)
    filterInfo.sortArr = arr
    filterInfo.query.sortString = arr.length ? arr.toString() : ''
    getList()
  }
}
</script>

<style scoped lang="scss">
.dialogInfo-form-title {
  width: 100%;
  padding-left: 10px;
  color: #6dc1a9;
  margin-bottom: 20px;
  span {
    color: rgb(95, 91, 91);
    font-size: 12px;
  }
}
</style>
